﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Dazaza.Framework.Config
{
    /// <summary>
    /// 数据缓存配置
    /// </summary>
    public class DataCacheConfig
    {
        /// <summary>
        /// 是否开启数据缓存
        /// </summary>
        public bool IsCache { get; set; }

        /// <summary>
        /// 前多少页开启缓存，0表示所有页面
        /// </summary>
        public int ToMaxPageIndex { get; set; }

        /// <summary>
        /// 缓存时长
        /// </summary>
        public int CacheMinutes { get; set; }
    }
}
